home *** CD-ROM | disk | FTP | other *** search
-
-
-
- Tcl_SetVar Tcl Command Language Library Tcl_SetVar
-
-
-
- _________________________________________________________________
-
- NNAAMMEE
- Tcl_SetVar - change the value of a Tcl variable
-
- SSYYNNOOPPSSIISS
- ##iinncclluuddee <<ttccll..hh>>
-
- TTccll__SSeettVVaarr(_i_n_t_e_r_p, _v_a_r_N_a_m_e, _n_e_w_V_a_l_u_e, _g_l_o_b_a_l)
-
- AARRGGUUMMEENNTTSS
- Tcl_Interp *_i_n_t_e_r_p (in) Interpreter in which to
- change variable.
-
- char *_v_a_r_N_a_m_e (in) Name of variable.
-
- char *_n_e_w_V_a_l_u_e (in) New value for _v_a_r_N_a_m_e
-
- int _g_l_o_b_a_l (in) If non-zero, then insist on
- interpreting _v_a_r_N_a_m_e as a
- global variable, regardless
- of whether a procedure
- invocation is in progress.
-
- _________________________________________________________________
-
-
- DDEESSCCRRIIPPTTIIOONN
- This is a utility procedure used by many of the Tcl com-
- mands. It changes the value of variable _v_a_r_N_a_m_e in inter-
- preter _i_n_t_e_r_p, such that future calls to TTccll__GGeettVVaarr will
- return _n_e_w_V_a_l_u_e as the value of _v_a_r_N_a_m_e. TTccll__SSeettVVaarr uses
- the same rules for selecting a global or local variable as
- TTccll__GGeettVVaarr. If _v_a_r_N_a_m_e doesn't already exist, then a new
- variable is created. TTccll__SSeettVVaarr copies both _v_a_r_N_a_m_e and
- _n_e_w_V_a_l_u_e into its own private storage, so the caller may
- change the contents of these strings after TTccll__SSeettVVaarr
- returns without affecting the variable's value.
-
-
- KKEEYYWWOORRDDSS
- interpreter, variable
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Sprite v.1.0 Printed: November 26, 1989 1
-
-
-
-